package com.like.bluetooth.sample

import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.like.bluetooth.sample.ble.BleCentralActivity
import com.like.bluetooth.sample.ble.BlePeripheralActivity
import com.like.bluetooth.sample.classic.ClassicScanActivity
import com.like.common.util.startActivity

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
    }

    fun gotoBleCentralActivity(view: View) {
        startActivity<BleCentralActivity>()
    }

    fun gotoBlePeripheralActivity(view: View) {
        startActivity<BlePeripheralActivity>()
    }

    fun gotoClassicActivity(view: View) {
        startActivity<ClassicScanActivity>()
    }

}
